<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
<th:block data-th-replace="/adminlte/base::base-head"></th:block>
</head>
<body class="hold-transition sidebar-mini layout-fixed">
	<div class="wrapper">
		<th:block data-th-replace="/adminlte/base::base-navbar"></th:block>
		<th:block data-th-replace="/adminlte/base::base-main-sidebar"></th:block>
		<div class="content-wrapper">
			<th:block data-th-replace="/adminlte/base::base-content-header"></th:block>
			<section class="content">
				<div class="container-fluid">
					<div class="card">
						<div class="card-header">
							<div class="card-title">站点信息</div>
						</div>
						<form class="form-horizontal" action="/emails/sender" method="put">
							<div class="card-body">
								<div class="form-group">
									<label class="col-sm-2 control-label">邮箱域名</label>
									<div class="col-sm-12">
										<input type="text" name="host" class="form-control"
											placeholder="邮箱域名" th:value="${senderInfo.host}"
											autofocus="autofocus">
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">邮箱端口</label>
									<div class="col-sm-12">
										<input type="text" name="port" class="form-control"
											placeholder="邮箱端口" th:value="${senderInfo.port}">
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">邮件邮箱</label>
									<div class="col-sm-12">
										<input type="text" name="username" class="form-control"
											placeholder="邮件发送人" th:value="${senderInfo.username}">
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">授权密码</label>
									<div class="col-sm-12">
										<input type="text" name="password" class="form-control"
											placeholder="发送人密码" th:value="${senderInfo.password}">
									</div>
								</div>
								<div class="row justify-content-center">
									<button type="submit" class="btn btn-info"
										style="width: 200px;">保存</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</section>
		</div>
		<th:block data-th-replace="/adminlte/base::base-footer"></th:block>
		<th:block data-th-replace="/adminlte/base::base-control-sidebar"></th:block>
	</div>
</body>
</html>